package net.cooltain.warhammer.running.window.panel;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.JLabel;

import net.cooltain.warhammer.running.entity.HandZone;
import net.cooltain.warhammer.running.entity.MotionPlayerZone;

public class HandZoneLabel extends JLabel  {
	
	private static final long serialVersionUID = 3275149456852360507L;
	
	private MotionPlayerZone player ; // 显示这个卡片的玩家,不一定是拥有卡片的人
	private HandZone   handZone ;     // 卡牌堆
	
	public HandZoneLabel(MotionPlayerZone player,HandZone handZone) {
		super();
		this.setDoubleBuffered(true);
		this.handZone = handZone;
		this.player = player;
	}

	
	public void paintComponent(Graphics g){
		super.paintComponent(g);
		g.setColor(Color.LIGHT_GRAY);
		g.drawString("手", this.getWidth()-15, 15);
		g.drawString("牌", this.getWidth()-15, 30);
		g.drawString(""+handZone.getCardSize(), this.getWidth()-15, 45);
	}
	

}
